layui.use(['jquery', 'ligutil', 'element', 'form', 'table'], function () {
    var $ = layui.jquery
        , form = layui.form
        , element = layui.element
        , ligutil = layui.ligutil;

    ligutil.table({
            elem: '.lig-table'
            , toolbar: '#tableToolbar'
            , url: '/hlk/courier/page' //数据接口
            , height: 350
            , skin: 'line'
            , cols: [[ //表头
                {type: 'checkbox'}
                , {title: '操作', toolbar: '#rowBar', align: 'left', width: 100}
                , {field: 'courierName', title: '姓名', align: 'left', minWidth: 80}
                , {field: 'phone', title: '手机号码', align: 'left', minWidth: 80}
            ]]
        }
        , {
            primaryField: 'courierId'

            , addContent: $('#courieradd').html()
            , addUrl: '/hlk/courier/add'
            , addTitle: '新增人员'
            , addHeight: 400

            , modifyContent: $('#couriermodify').html()
            , modifyUrl: '/hlk/courier/modify'
            , modifyTitle: '编辑人员'
            , modifyHeight: 400

            , removeUrl: '/hlk/courier/remove'
            , getUrl: '/hlk/courier/{courierId}'

        });

});